﻿@{
    ViewBag.Title = "UpdateRebillEvent";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@model MvcEnrollment.ewayRecurringWebService.RebillEventDetails
<h2>UpdateRebillEvent</h2>
<strong>Rebilling ID: </strong>@Model.RebillID
<br />
@Html.ValidationMessage("UpdateError")
@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)
    <carttitle>Invoice Information</carttitle>
    <table class="nonEditableTable">
        <tr>
            <th>Invoice Reference: </th>
            <td>@Html.EditorFor(model => model.RebillInvRef)</td>
        </tr>
        <tr>
            <th>Invoice Description: </th>
            <td>@Html.EditorFor(model => model.RebillInvDesc)</td>
        </tr>
    </table>
    <carttitle>Credit Card Information</carttitle>
    <table class="nonEditableTable">
        <tr>
            <th>Credit Card Information: </th>
            <td>@Html.EditorFor(model => model.RebillCCName)</td>
        </tr>
        <tr>
            <th>Credit Card Number: </th>
            <td>@Html.EditorFor(model => model.RebillCCNumber)</td>
        </tr>
        <tr>
            <th>Credit Card Expiry: </th>
            <td>
                <select id="exM" name="exM">
                    @for (int i = 1; i <= 12; i++)
                    {
                        <option value="@i">@i </option>
                    }
                </select>
                &nbsp;/&nbsp;
            <select id="exY" name="exY">
                @for (int i = 10; i <= 28; i++)
                {
                    <option value="@i">@i </option>
                }
            </select>
                Month/Year
            </td>
        </tr>
    </table>
    <carttitle>Payment Details</carttitle>
    <table class="nonEditableTable">
        <tr>
            <th>Next Recurring Date: </th>
            <td>@Html.EditorFor(model => model.RebillStartDate)</td>
        </tr>
        <tr>
            <th>Recurring Amount: </th>
            <td>AUD @Html.EditorFor(model => model.RebillRecurAmt) </td>
        </tr>
        <tr>
            <td></td>
            <td>Amount displayed in cent.
                <br />
                Example: $12.34 is 1234</td>
        </tr>
        <tr>
            <th>Payment Every: </th>
            <td>
                <select id="interval" name="interval">
                    @for (int i = 1; i <= 31; i++)
                    {
                        <option value="@i">@i </option>
                    }
                </select>
                &nbsp;
            <select id="interType" name="interType">
                <option value="1">Day(s) </option>
                <option value="2">Week(s) </option>
                <option value="3">Month(s) </option>
                <option value="4">Year(s) </option>
            </select>
            </td>
        </tr>
        <tr>
            <th>End Date: </th>
            <td>@Html.EditorFor(model => model.RebillEndDate)</td>
        </tr>
    </table>
    @Html.HiddenFor(model => model.RebillCustomerID)
    @Html.HiddenFor(model => model.RebillID)
    @Html.HiddenFor(model => model.RebillInitAmt)
    @Html.HiddenFor(model => model.RebillInitDate)
    @Html.HiddenFor(model => model.RebillStartDate)
    <p>
        <input type="submit" value="save change" />
    </p>
}